package com.cxria.springcloud.feign.service


import com.cxria.springcloud.feign.service.hystric.HelloServiceHystric
import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestParam

@FeignClient(value = 'hello-server', fallback = HelloServiceHystric.class)
interface HelloService {

    @GetMapping('hello')
    String hello(@RequestParam('name') String name)

}
